#ifndef __UART_H 
#define __UART_H

#include <stdio.h>

#define UART_REG_TR *((volatile uint8_t *)0x10000000) 
#define UART_REG_IE *((volatile uint8_t *)0x10000001) 
#define UART_REG_FC *((volatile uint8_t *)0x10000002) 
#define UART_REG_LC *((volatile uint8_t *)0x10000003) 
#define UART_REG_MC *((volatile uint8_t *)0x10000004) 
#define UART_REG_LS *((volatile uint8_t *)0x10000005) 
#define UART_REG_SR *((volatile uint8_t *)0x10000007)
void putch(char ch);
void uart_set_baud(int baud,int system_frequency);
void uart_tr_init(void);

#endif /* end __UART_H */
